<?php
/**
 * ShopEx licence
 *
 * @copyright  Copyright (c) 2005-2010 ShopEx Technologies Inc. (http://www.shopex.cn)
 * @license  http://ecos.shopex.cn/ ShopEx License
 */

$db['cart_objects']=array (
    'columns' =>
    array (
        'obj_ident' =>
        array (
            'type' => 'varchar(255)',
            'pkey' => true,
            'required' => true,
            'label' => app::get('b2c')->_('对象ident'),
            'editable' => false,
            'in_list' => true,
            'default_in_list' => true,
            'is_title' => true,
        ),
        'member_ident' =>
        array (
            'type' => 'varchar(50)',
            'pkey' => true,
            'required' => true,
            'label' => app::get('b2c')->_('会员ident'),
            'comment' => app::get('b2c')->_('会员ident,会员信息和serssion生成的唯一值'),
            'editable' => false,
            'in_list' => true,
            'default_in_list' => true,
        ),
        'member_id' =>
        array (
            'type' => 'int(8) ',
            'pkey' => true,
            'required' => true,
            'label' => app::get('b2c')->_('会员 id'),
            'editable' => false,
            'default' => -1,
        ),
        'obj_type' =>
        array (
            'type' => 'varchar(20)',
            'required' => true,
            'label' => app::get('b2c')->_('购物车对象类型'),
            'editable' => false,
            'in_list' => true,
        ),
        'params' =>
        array (
            'type' => 'serialize',
            'required' => true,
            'label' => app::get('b2c')->_('购物车对象参数'),
            'editable' => false,
            'in_list' => true,
        ),
        'quantity' =>
        array (
            'type' => 'float unsigned',
            'required' => true,
            'label' => app::get('b2c')->_('数量'),
            'editable' => false,
            'in_list' => true,
        ),
        'time' =>
        array(
            'type' => 'time',
            'label' => app::get('b2c')->_('时间'),
        ),

        'is_check' =>
        array(
            'type' => 'tinyint',
            'label' => app::get('b2c')->_('是否选中'),
            'default' => 1,
            'in_list' => true,
            'default_in_list' => true,
        ),
    ),
    'index' =>
    array (
        'ind_member_id' =>
        array (
            'columns' =>
            array (
                0 => 'member_id',
            ),
        ),
    ),
    'engine' => 'innodb',
    'version' => '$Rev: 40912 $',
    'unbackup' => true,
    'ignore_cache' => true,
    'comment' => app::get('b2c')->_('购物车'),
);
